<?php
class PromocjeHelper extends AppHelper {
	public $helpers = array('Html', 'Form','Tree','Session','Number','Javascript');
	public $components = array( 'PromocjeKoszulki');
	
	function beforeRender(){
		parent::beforeRender();
		$this->View =& ClassRegistry::getObject('view');	
		
		App::import('Component','Promocje');
		$this->Promocje = new PromocjeComponent();
	}	
	
	
	function __construct(){
		parent::__construct();	
		
	}
	
	function display(){	
		
		$promocje =  $this->Promocje->get_koszulki();
		return $this->View->element('promocje_koszulki',array('plugin'=>false,'promocje_koszulki'=>$promocje));

	}
}